package com.easy.api.service;

import com.channel.test.TestParam;
import com.easy.api.bean.api.OpenConfig;
import com.easy.api.factory.api.request.RequestBuildParam;
import com.easy.api.utils.ObjectUtils;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author liuyuan
 * @Date 2020-04-25 00:07
 * @Version 1.0
 */
@Component
public class WechatService implements RequestBuildParam {
    @Override
    public Map<String, String> buildParam(Object param, OpenConfig openConfig) {
        TestParam testParam = (TestParam)param;
        System.out.println( testParam.toString());
        return ObjectUtils.toMapStr(param);
    }
}
